package com.coding.pojo;

import java.io.Serializable;

/**
 * history
 * @author 
 */
public class History implements Serializable {
    /**
     * 用户id
     */
    private Integer user_id;

    /**
     * 资源id
     */
    private Integer source_id;

    /**
     * 资源种类（post,place,poem)
     */
    private String history_kind;

    /**
     * 浏览时间
     */
    private String history_time;

    /**
     * 浏览标签
     */
    private String history_tag;

    /**
     * 更多
     */
    private String history_more1;

    /**
     * 更多
     */
    private String history_more2;

    private static final long serialVersionUID = 1L;

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getSource_id() {
        return source_id;
    }

    public void setSource_id(Integer source_id) {
        this.source_id = source_id;
    }

    public String getHistory_kind() {
        return history_kind;
    }

    public void setHistory_kind(String history_kind) {
        this.history_kind = history_kind;
    }

    public String getHistory_time() {
        return history_time;
    }

    public void setHistory_time(String history_time) {
        this.history_time = history_time;
    }

    public String getHistory_tag() {
        return history_tag;
    }

    public void setHistory_tag(String history_tag) {
        this.history_tag = history_tag;
    }

    public String getHistory_more1() {
        return history_more1;
    }

    public void setHistory_more1(String history_more1) {
        this.history_more1 = history_more1;
    }

    public String getHistory_more2() {
        return history_more2;
    }

    public void setHistory_more2(String history_more2) {
        this.history_more2 = history_more2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        History other = (History) that;
        return (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getSource_id() == null ? other.getSource_id() == null : this.getSource_id().equals(other.getSource_id()))
            && (this.getHistory_kind() == null ? other.getHistory_kind() == null : this.getHistory_kind().equals(other.getHistory_kind()))
            && (this.getHistory_time() == null ? other.getHistory_time() == null : this.getHistory_time().equals(other.getHistory_time()))
            && (this.getHistory_tag() == null ? other.getHistory_tag() == null : this.getHistory_tag().equals(other.getHistory_tag()))
            && (this.getHistory_more1() == null ? other.getHistory_more1() == null : this.getHistory_more1().equals(other.getHistory_more1()))
            && (this.getHistory_more2() == null ? other.getHistory_more2() == null : this.getHistory_more2().equals(other.getHistory_more2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getSource_id() == null) ? 0 : getSource_id().hashCode());
        result = prime * result + ((getHistory_kind() == null) ? 0 : getHistory_kind().hashCode());
        result = prime * result + ((getHistory_time() == null) ? 0 : getHistory_time().hashCode());
        result = prime * result + ((getHistory_tag() == null) ? 0 : getHistory_tag().hashCode());
        result = prime * result + ((getHistory_more1() == null) ? 0 : getHistory_more1().hashCode());
        result = prime * result + ((getHistory_more2() == null) ? 0 : getHistory_more2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", user_id=").append(user_id);
        sb.append(", source_id=").append(source_id);
        sb.append(", history_kind=").append(history_kind);
        sb.append(", history_time=").append(history_time);
        sb.append(", history_tag=").append(history_tag);
        sb.append(", history_more1=").append(history_more1);
        sb.append(", history_more2=").append(history_more2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}